package org.javanum.number;

/**
 * <p>An abstract implementation of the {@link CartesianComplexField} 
 * interface.</p>
 * 
 * <p>This class implements only the toString() method</p>
 * 
 * Author: Scott Fines
 * Date: Oct 31, 2009
 *
 * @param <K> the return type for Real element calculations
 * @param <V> the return type for this implementation
 * @param <T> the type of the backing data structure
 */
public abstract class AbstractCartesianComplex<K extends RealField<K,T>,
										V extends AbstractCartesianComplex<K,V,T>,T extends Number> implements
										CartesianComplexField<K, V, T> {

	@Override
	public String toString() {
		return realPart().toString()+" + i"+ imaginaryPart().toString();
	}
	
}
